package com.dot.dominion.action;

import java.util.List;

import com.dot.dominion.domain.Card;
import com.dot.dominion.domain.Effect;

public class Reaction extends Card implements Effect {
	private List<Event> list;
	
	/**
	 * Normal ReactionCard constructor
	 * 
	 * @param name				Name of the card
	 * @param pictureId			The picture ID of the card
	 * @param cost				The cost of the card
	 * @param eList				List containing the ActionCard events
	 */
	public Reaction(String name, int pictureId, int boardId, int cost,
			List<Event> eList) {
		super( name, pictureId, boardId, cost, 0, 0 );
		
		list = eList;
	}
	
	/**
	 * Hybrid ReactionCard constructor
	 * 
	 * For use with ReactionCards that are also a TreasureCard or VictoryCard
	 * 
	 * @param name				Name of the card
	 * @param pictureId			The picture ID of the card
	 * @param cost				The cost of the card
	 * @param victoryPoints		The victory point value
	 * @param eList				List containing the ActionCard events
	 */
	public Reaction(String name, int pictureId, int boardId, int cost,
			int victoryPoints, List<Event> eList) {
		super( name, pictureId, boardId, cost, victoryPoints, 0 );
		
		list = eList;
	}
	
	public Event[] getEffect(){
		return (Event[]) list.toArray();
	}
}
